package com.demo.spark.config;

import org.apache.spark.SparkConf;
import org.apache.spark.api.java.JavaSparkContext;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author liuyuanqi
 * @date 2019-07-09 8:54
 */
@Configuration
public class SparkConfig {

    private String sparkHome = ".";

    private String appName = "sparkTest";

    private String master = "local";

//    @Bean
//    public SparkConf SparkConf(){
//        return new SparkConf().setAppName(appName).setMaster(master);
//    }
//
//    @Bean
//    public JavaSparkContext SparkContext(){
//        return new JavaSparkContext(SparkConf());
//    }

}
